package br.com.naybee.domain.iconsFs;

import org.springframework.stereotype.Service;

import br.com.naybee.framework.client.dao.DaoImpl;
import br.com.naybee.framework.client.models.ListModel;
import br.com.naybee.framework.client.models.Model;

@Service
public class IconeBs extends DaoImpl {

	public ListModel listarIcones() {
		return list("listar-icones.sql");
	}

	public void registrarIcones(Model param) {
		ListModel listModel = param.getListModel("icones");
		for (Model model : listModel) {
			add("registrar-icones.sql", model);
		}
	}

	public Model consultarIcones(Model param) {
		return find("consultar-icons.sql", param);
	}

}
